﻿@model User
@using EasyMvc.Models
@using EasyMvc.Controls
@{
    Layout = "~/Areas/MWeb/Views/Shared/_Layout.Edit.cshtml";
}
@section PageSpecificStyleSheetIncludes{
    <style type="text/css"> 
        
    </style>
}
@section PageSpecificJavascriptIncludes{
    <script type="text/javascript">
        $(document).ready(function () {
            if ($("#Username").val() != "") {
                $("#Username").attr("disabled", true);
                $("#pw").hide();
            }
        });
   </script>
}
@section MainContent{
    <div>
        <fieldset>
        <legend>用户信息</legend>
        <div class="editItem">
            <span class="label"><span class="rq">*</span>用户名：</span>
            @Html.EditorFor(model => model.Username)
            @Html.ValidationMessageFor(model => model.Username)
        </div> 
        <div id="pw" class="editItem">
            <span class="label"><span class="rq">*</span>密码：</span>
            111111（此为系统设置的默认密码）
        </div> 
        <div class="editItem">
            <span class="label">描述：</span>
            @Html.TextBox("Description")
        </div> 

    </fieldset>
    <fieldset>
        <legend>用户角色：</legend>  
        @Html.CheckBoxList("RoleIds", false)
    </fieldset>
    </div>
}

